﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NPipeline
{
    public class StageException : Exception
    {
        private IStage sourceStage;
        public IStage SourceStage { get { return sourceStage; } }

        public StageException(IStage source) : base()
        {
            sourceStage = source;
        }

        public StageException(IStage source, String message) : base (message)
        {
            sourceStage = source;
        }

    }
}
